* {
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: auto;
  background-color: #232122;
  position: relative;
}

div, a {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

li {
  list-style: none;
}

.gold_spade {
  /* 首页开始 */
  .home {
    &.active {
      display: block;
    }
    display: none;
    width: 100%;
    padding: 5px 12px 150px;
    box-sizing: border-box;
    // 顶部区域
    .top {
      width: 100%;
      height: 160px;
      border-radius: 15px;
      background-image: url("../images/top.png");
      margin-bottom: 10px;
    }
    // 选择列表区域
    .toggle_list {
      display: flex;
      li {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #fff;
        img {
          width: 40px;
          height: 40px;
          margin-bottom: 5px;
        }
      }
    }
    // 选项区域
    .choices {
      display: none;
      &.active {
        display: block;
      }
      margin-top: 15px;
      .choice_item {
        &:nth-of-type(1) {
          a {
            background-image: url("../images/setting2.png");
          }
        }
        &:nth-of-type(2) {
          a {
            background-image: url(../images/left2.png);
          }
        }
        &:nth-of-type(3) {
          a {
            background-image: url(../images/left2.png);
          }
        }
        &:nth-of-type(4) {
          a {
            background-image: url(../images/left2.png);
          }
        }
        &:nth-of-type(5) {
          a {
            background-image: url(../images/left4.png);
          }
        }
        &:nth-of-type(6) {
          a {
            background-image: url(../images/storage2.png);
          }
        }
        color: #fff;
        >p {
          width: 100%;
          text-align: center;
          font-size: 20px;
          margin-bottom: 5px;
        }
        >ul {
          li {
            width: 100%;
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            color: #323031;
            margin: 10px 0;
            >div {
              padding: 3px 8px;
              box-sizing: border-box;
              width: 44%;
              display: flex;
              align-items: center;
              justify-content: center;
              color: #909090;
              background-color: #323031;
              border-radius: 3px;
              &.active {
                background-color: #7c29e7;
                color: #fff;
              }
              >a {
                display: inline-block;
                width: 15px;
                height: 15px;
              }
              >span {
                text-overflow:ellipsis;
                overflow:hidden;
                white-space:nowrap;
                margin-left: 5px;
              }
            }
          }
        }
      }
    }
  }
  /* 首页结束 */

  /* 我的区域开始 */
  .mine {
    display: none;
    position: relative;
    &.active {
      display: flex;
    }
    height: 100vh;
    width: 100%;
    padding: 20px 0 130px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    .user_info {
      .avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin: 0 auto;
        border: 3px solid #fff;
        background-color: #a4e2b8;
      }
      .username {
        color: #fff;
        text-align: center;
        font-size: 22px;
        margin-top: 10px;
      }
    }
    .logout_btn {
      display: block;
      width: 60%;
      margin: 0 auto;
      padding: 10px 0;
      font-size: 22px;
      outline: none;
      border: 3px solid #fff;
      background-color: #c0c0c0;
      border-radius: 5px;
      box-sizing: border-box;
      text-align: center;
    }
    .logout {
      &.active {
        display: block;
      }
      display: none;
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 70%;
      padding:20px;
      box-sizing: border-box;
      background-color: #fff;
      border-radius: 5px;
      h2 {
        font-size: 25px;
        font-weight: bold;
        margin-bottom: 15px;
      }
      p {
        font-size: 20px;
        margin-bottom: 40px;
      }
      .buttons {
        display: flex;
        justify-content: space-between;
        color: #2d807e;
        font-size: 20px;
      }
    }
  }
  /* 我的区域结束 */

  /* 切换菜单区域开始 */
  .menu {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    >.launch {
      height: 40px;
      width: 100%;
      background-color: #7a26ed;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: #fff;
      &.active {
        display: flex;
      }
      .icon {
        width: 25px;
        height: 25px;
        background-image: url("../images/start.png");
        margin-right: 8px;
        &.active {
          background-image: url("../images/pause.png");
        }
      }
    }
    >.toggle {
      height: 50px;
      width: 100%;
      display: flex;
      background-color: #fff;
      >div {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        &:nth-of-type(1) {
          &.active {
            display: flex;
            >.icon {
              background-image: url("../images/home_active.png");
            }
          }
          >.icon {
            background-image: url("../images/home.png");
          }
        }
        &:nth-of-type(2) {
          &.active {
            >.icon {
              background-image: url("../images/mine_active.png");
            }
          }
          >.icon {
            background-image: url("../images/mine.png");
          }
        }
        >.icon {
          width: 25px;
          height: 25px;
        }
        >.text {
          font-size: 14px;
          color: #333;
        }
      }
    }
  }
  /* 切换菜单区域结束 */

  /* 登录区域开始 */
  .login {
    &.active {
      display: flex;
    }
    display: none;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    .login_content{
      width: 85%;
      height: 150px;
      background-color: #fff;
      padding: 10px;
      border-radius: 8px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      p {
        font-size: 22px;
        font-weight: bold;
        color: #000;
        margin-bottom: 10px;
      }
      input {
        &::-webkit-input-placeholder {
          font-size: 16px;
        }
        width: 100%;
        outline: none;
        text-align: center;
        border: 1px solid #1c72c7;
        padding: 10px;
        box-sizing: border-box;
        margin-bottom: 10px;
        font-size: 16px;
        border-radius: 5px;
      }
      .btn {
        background-color: transparent;
        border: none;
        color: #1c72c7;
        font-size: 20px;
      }
    }
  }
  /* 登录区域结束 */

  /* loading区域开始 */
  .loading {
    &.active {
      display: flex;
    }
    display: none;
    width: 50%;
    height: 130px;
    //background-color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    >.icon {
      width: 50px;
      height: 50px;
      background-image: url("../images/loading.gif");
      margin-bottom: 5px;
    }
    >.text {
      font-size: 16px;
      color: #fff;
    }
  }
  /* loading区域结束 */

  /* 提示区域开始 */
  .tip {
    &.active {
      display: block;
    }
    display: none;
    padding: 10px 20px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    width: auto;
    white-space: nowrap;
  }
  /* 提示区域结束 */

  /* 帮助区域开始 */
  .helper {
    &.active {
      display: block;
    }
    display: none;
    width: 90%;
    height: 70%;
    background-color: #fff;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    >.title {
      padding: 10px 0;
      text-align: center;
      font-size: 20px;
      color: #333;
      font-weight: bold;
      border-bottom: 1px solid #000;
    }
    >.content {
      padding: 10px;
      padding-bottom: 100px;
      box-sizing: border-box;
      font-size: 18px;
      overflow: scroll;
      height: 90%;
      .operation{
        .title {
          background-color: #f00;
          color: #ffffff;
          font-weight: bold;
          padding: 3px 5px;
          border-radius: 5px;
        }
        .content_box {
          margin-top: 10px;
          font-size: 17px;
        }
        &:nth-of-type(2) {
          .title {
            display: inline-block;
            margin-top: 10px;
            background-color: #ffde06;
            color: #ffffff;
          }
        }
      }
    }
    >.buttons {
      position: fixed;
      left: 0;
      bottom: 0;
      background-color: #fff;
      width: 100%;
      display: flex;
      padding-top: 20px;
      box-sizing: border-box;
      >.btn {
        flex: 50%;
        padding: 15px 0;
        text-align: center;
        box-sizing: border-box;
        border-top: 1px solid #000;
        &:nth-of-type(1) {
          border-right: 1px solid #000;
        }
        &:nth-of-type(2) {
          color: #007aff;
        }
      }
    }
  }
  /* 帮助区域结束 */

  /* 退出提示框区域开始 */

  /* 退出提示框区域结束 */
}
